package com.atlbb.controller;

import com.atlbb.mybatis.entity.Transaction;
import com.atlbb.service.TransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author LiangQingBin
 * @version 1.00
 * @ClassName TransactionController
 * @Description TODO
 * @time 2021/12/9 21:05
 */
@RestController
@CrossOrigin
@RequestMapping("/transaction")
public class TransactionController {
    @Autowired
    TransactionService transactionService;
    
    @GetMapping("/findAll")
    public List<Transaction> findAll(){
        return transactionService.findAll();
    }
}
